home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / assem.zip / ASSEM.BAT next >
DOS Batch File  |  1985-10-04  |  2KB  |  76 lines

  1. echo off
  2. cls
  3. echo -                         The DEBUG Assembler System
  4. echo -
  5. if exist debug.com goto gotdebug
  6. echo -
  7. echo -
  8. echo -Did not find DEBUG.COM
  9. echo -
  10. echo -You must have DEBUG in this directory
  11. echo -or have PATH set to point to the drive
  12. echo -and path where DEBUG can be found.
  13. goto end
  14. :gotdebug
  15. if %1==A goto assemble
  16. if %1==a goto assemble
  17. if %1==U goto unassemble
  18. if %1==u goto unassemble
  19. echo -
  20. echo -
  21. echo -
  22. echo -Please specify one of the following modes:
  23. echo -
  24. echo -          [A,a] to assemble a file
  25. echo -          [U,u] to unassemble a file
  26. echo -
  27. echo -Reenter your selection.
  28. goto end
  29. :assemble
  30. echo -searching for the file "%2.ASM"
  31. echo -
  32. if not exist %2.asm goto aerror
  33. echo -assembling the file "%2.COM"
  34. echo -
  35. echo -the results of the assembly will be placed
  36. echo -into the file "%2.LST"
  37. echo -
  38. echo -please wait. . .
  39. echo -
  40. debug <%2.asm >%2.lst
  41. echo -assembly completed
  42. goto end
  43. :aerror
  44. echo -the file "%2.ASM" does not exist
  45. echo -
  46. echo -if the file name above is ".ASM"
  47. echo -you forgot to specify a file name
  48. goto end
  49. :disassemble
  50. echo -searching for the file "%2.COM"
  51. echo -
  52. if not exist %2.com goto derror
  53. echo -ready to disassemble the file "%2.COM"
  54. echo -
  55. echo -enter the commands for DEBUG to use
  56. echo -
  57. echo -press F6 when done. . .
  58. echo -
  59. copy con: unasm.cmd
  60. echo -
  61. echo -producing the file "%2.FIL" now
  62. echo -
  63. echo -please wait. . .
  64. echo -
  65. debug <unasm.cmd >%2.fil
  66. echo -disassembly completed
  67. goto end
  68. :derror
  69. echo -the file "%2.COM" does not exist
  70. echo -
  71. echo -if the file name above is ".COM"
  72. echo -you forgot to specify a file name
  73. :end
  74. o -the file "%2.COM" does not exist
  75. echo -
  76. echo -if the file name above is ".C